const mongoose = require("mongoose");
const dbconfig = require('../util/dbconfig');

const database = mongoose.createConnection({
    host: dbconfig.mysql.host,
    user: dbconfig.mysql.user,
    port: dbconfig.mysql.port,
    password: dbconfig.mysql.password,
    database: dbconfig.mysql.database
})

database.connect();

module.exports = database;